﻿/// <summary>
/// Excel有Office和Wps目前只支持Office后期加入Wps支持。
/// </summary>
namespace SUNRPA.CONTROLS.IMPL.domain.flowItemParam {
    [Serializable]
    public class AddExcelFilterNParam:BaseParam {
        private string excelObject = "{excelObject}";
        //0添加筛选器，1清除筛选器
        private int filterType = 0;
        private string sheetName;
        private List<string> conditions = new List<string>();

        public List<string> Conditions {
            get => conditions; 
            set { 
                conditions = value;
            }  
        }

        public string GetTranslateFilterType() {
            switch(this.filterType) {
                case 0:
                    return "添加";
                case 1:
                    return "清除";
                default : return "添加";
            }
        }
        public int FilterType {
            get => filterType; 
            set { 
                filterType = value;
                NotifyPropertyChanged("FilterType");
            }  
        }
        public string ExcelObject {
            get => excelObject; 
            set { 
                excelObject = value;
                NotifyPropertyChanged("ExcelObject");
            }  
        }
        public string SheetName {
            get => sheetName; 
            set { 
                sheetName = value;
                NotifyPropertyChanged("SheetName");
            }  
        }
    }
}
